import React from 'react'
import "./cateList.css"

export default function CateList(props) {
    let {cateList,reqCateGoods} = props
    return (
        <ul className="cateList">
            {
                cateList.map(item => (
                    <li key={item.id} onClick={()=>reqCateGoods(item.id)}>{item.catename}</li>
                ))
            }
        </ul>
    )
}
